import io
from os import path
from setuptools import setup, find_packages

this_directory = path.abspath(path.dirname(__file__))
with io.open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()

setup(name='sqlalchemy_kingbase',
      version='0.5.19',
      description="Kingbase dialect for SQLAlchemy",
      long_description=long_description,
      long_description_content_type="text/markdown",
      platforms=["any"],
      classifiers=[
          'Environment :: Console',
          'License :: OSI Approved :: GPL-3.0 License',
          'Intended Audience :: Developers',
          'Programming Language :: Python',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.9',
          'Programming Language :: Python :: 3.10',
          'Programming Language :: Python :: 3.11',
          'Programming Language :: Python :: Implementation :: CPython',
          "Topic :: Database",
          'Topic :: Database :: Front-Ends',
      ],
      python_requires='>=3.9',
      install_requires=[
          "sqlalchemy>=2.0.7",
          "psycopg2-binary==2.9.9",
      ],
      keywords='SQLAlchemy Kingbase',
      license='GPL-3.0',
      url='https://gitee.com/LFunTech/sqlalchemy_kingbase',
      # packages=["sqlalchemy_kingbase"],
      packages=find_packages(include=["sqlalchemy_kingbase"]),
      include_package_data=True,
      entry_points={
          "sqlalchemy.dialects": [
              "kingbase = sqlalchemy_kingbase.psycopg2:dialect",
              "kingbase.asyncpg = sqlalchemy_kingbase.asyncpg:dialect"
          ]
      },
      )
